package com.controller;

import com.entity.GoodsEntity;
import com.entity.Result;
import com.service.GoodsService;
import com.service.RefundService;
import com.service.UnloadGoodsService;
import com.util.CurrentUser;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Slf4j
@RestController
@RequestMapping("/refund")
public class RefundController {
    @Autowired
    private RefundService refundService;

    @RequestMapping("/getByRid")
    private Result getByRid(Integer rid){
        System.out.println(rid);
        return Result.ok(refundService.getByRid(rid));
    }
}
